<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>端口状态监测服务</title>
    <script src="js/jquery-3.6.0.min.js"></script>
    <link type="text/css" rel="stylesheet" href="css/app.css" />
  </head>
  <body>
    <div id="app">
      <div id="header">
        <div>
          <!--            <span>查找</span>-->
          <!--            <input type="text"/>-->
          端口状态监测服务
        </div>
        <div>
          <!-- <button id="btn-refresh">刷新</button> -->
          <button id="btn-show-dialog">添加</button>
          <button id="toggle-view">切换视图</button>
        </div>
      </div>
      <div id="data-container">
        <div id="list"></div>
      </div>
      <dialog id="dialog">
        <p>设置监测项</p>
        <form>
          <label>
            <span>名称:</span>
            <input type="text" id="name" />
          </label>
          <label>
            <span>IP:</span>
            <input type="text" id="ip" />
          </label>
          <label>
            <span>端口:</span>
            <input type="text" id="port" />
          </label>
        </form>
        <div id="dialog-btns">
          <div>
            <!--                <label>-->
            <!--                    <input type="checkbox" id="add-more">-->
            <!--                    <span style="font-size: 12px">连续添加</span>-->
            <!--                </label>-->
          </div>
          <div>
            <button id="btn-add">确定</button>
            <button id="btn-close">关闭</button>
          </div>
        </div>
      </dialog>
    </div>
    <div id="loading">
      <div class="loading-text">正在请求...</div>
    </div>
    <script src="js/app.js"></script>
  </body>
</html>
